<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>孕育宝典 - 胎动记录</title>
        <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
        <style>
            body {
                font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
                background-color: #f5f5f5;
                color: #333333;
                margin: 0;
                padding: 0;
            }
            .device-container {
                width: 390px;
                height: 844px;
                overflow: hidden;
                position: relative;
                background-color: #ffffff;
            }
            .status-bar {
                height: 44px;
                background-color: #ffffff;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 20px;
                font-size: 14px;
                font-weight: 600;
            }
            .header {
                background-color: #ffffff;
                padding: 12px 16px 8px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid #f0f0f0;
            }
            .nav-bar {
                height: 60px;
                background-color: #ffffff;
                position: absolute;
                bottom: 0;
                width: 100%;
                display: flex;
                justify-content: space-around;
                align-items: center;
                border-top: 1px solid #f0f0f0;
            }
            .nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                color: #666666;
                font-size: 10px;
            }
            .nav-item.active {
                color: #ff9fb5;
            }
            .main-content {
                height: calc(844px - 44px - 60px - 56px);
                overflow-y: auto;
                padding: 16px;
                background-color: #f9f9f9;
            }
            .card {
                background-color: #ffffff;
                border-radius: 12px;
                padding: 16px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
                margin-bottom: 16px;
            }
            .card-title {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                margin-bottom: 12px;
                display: flex;
                align-items: center;
            }
            .card-title i {
                margin-right: 8px;
                color: #ff9fb5;
            }
            .form-group {
                margin-bottom: 16px;
            }
            .form-label {
                display: block;
                font-size: 14px;
                font-weight: 500;
                color: #333;
                margin-bottom: 6px;
            }
            .button-primary {
                background-color: #ff9fb5;
                color: white;
                border: none;
                border-radius: 8px;
                padding: 12px 0;
                font-size: 16px;
                font-weight: 500;
                width: 100%;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            .button-secondary {
                background-color: #f5f5f5;
                color: #666;
                border: 1px solid #ddd;
                border-radius: 8px;
                padding: 12px 0;
                font-size: 16px;
                font-weight: 500;
                width: 100%;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            .progress-container {
                height: 4px;
                background-color: #f0f0f0;
                border-radius: 2px;
                margin-bottom: 24px;
                position: relative;
            }
            .progress-bar {
                height: 100%;
                background-color: #ff9fb5;
                border-radius: 2px;
            }
            .date-selector {
                display: flex;
                justify-content: space-between;
                align-items: center;
                background-color: #f8f8f8;
                border-radius: 8px;
                padding: 12px 16px;
                margin-bottom: 16px;
            }
        </style>
    </head>
    <body>
        <div class="device-container">
            <!-- iOS状态栏 -->
            <div class="status-bar">
                <span>9:41</span>
                <div class="flex items-center">
                    <i class="fas fa-signal mr-1"></i>
                    <i class="fas fa-wifi mr-1"></i>
                    <i class="fas fa-battery-full"></i>
                </div>
            </div>

            <!-- 页面头部 -->
            <div class="header">
                <div class="flex items-center">
                    <i class="fas fa-arrow-left mr-4"></i>
                    <h1 class="text-lg font-medium">胎动记录</h1>
                </div>
                <div class="flex gap-3">
                    <i class="fas fa-question-circle"></i>
                </div>
            </div>

            <!-- 主内容区 -->
            <div class="main-content">
                <!-- 说明卡片 -->
                <div class="card">
                    <div class="card-title">
                        <i class="fas fa-info-circle"></i>
                        <span>胎动计数说明</span>
                    </div>
                    <div class="text-sm text-gray-600 mb-2">
                        <p>胎动是宝宝健康的重要指标。推荐从孕28周开始每天数胎动。</p>
                    </div>
                    <div class="bg-blue-50 text-blue-700 text-sm p-3 rounded-lg">
                        <p><i class="fas fa-lightbulb mr-1"></i> 计数方法：选择固定时间，连续计数1小时内的胎动次数</p>
                    </div>
                </div>

                <!-- 日期选择 -->
                <div class="card">
                    <div class="card-title">
                        <i class="fas fa-calendar-alt"></i>
                        <span>选择日期和时间</span>
                    </div>
                    <div class="date-selector">
                        <div>
                            <span class="text-gray-500 text-sm">日期</span>
                            <div class="font-medium">2023年7月20日</div>
                        </div>
                        <i class="fas fa-chevron-right text-gray-400"></i>
                    </div>
                    <div class="date-selector">
                        <div>
                            <span class="text-gray-500 text-sm">开始时间</span>
                            <div class="font-medium">14:30</div>
                        </div>
                        <i class="fas fa-chevron-right text-gray-400"></i>
                    </div>
                </div>

                <!-- 计时工具 -->
                <div class="card">
                    <div class="card-title">
                        <i class="fas fa-stopwatch"></i>
                        <span>胎动计数器</span>
                    </div>
                    <div class="text-center mb-6">
                        <div class="text-5xl font-bold text-gray-800 mb-1">00:32:45</div>
                        <div class="text-sm text-gray-500">计时中...</div>
                    </div>
                    <div class="text-center mb-6">
                        <div class="inline-flex items-center justify-center w-24 h-24 rounded-full bg-pink-100 mb-2">
                            <div class="text-3xl font-bold text-pink-500">12</div>
                        </div>
                        <div class="text-sm text-gray-600">胎动次数</div>
                    </div>
                    <div class="grid grid-cols-2 gap-4 mb-4">
                        <button class="button-primary"><i class="fas fa-plus mr-1"></i> 记录一次</button>
                        <button class="button-secondary"><i class="fas fa-stop mr-1"></i> 结束计数</button>
                    </div>
                </div>

                <!-- 胎动统计图 -->
                <div class="card">
                    <div class="card-title">
                        <i class="fas fa-chart-bar"></i>
                        <span>本周胎动趋势</span>
                    </div>
                    <div style="height: 200px; position: relative">
                        <!-- Y轴 -->
                        <div
                            style="
                                position: absolute;
                                top: 0;
                                left: 0;
                                bottom: 20px;
                                width: 30px;
                                display: flex;
                                flex-direction: column;
                                justify-content: space-between;
                                align-items: flex-end;
                                padding-right: 5px;
                            "
                        >
                            <div class="text-xs text-gray-500">20</div>
                            <div class="text-xs text-gray-500">15</div>
                            <div class="text-xs text-gray-500">10</div>
                            <div class="text-xs text-gray-500">5</div>
                            <div class="text-xs text-gray-500">0</div>
                        </div>

                        <!-- 图表区域 -->
                        <div
                            style="
                                position: absolute;
                                top: 0;
                                left: 30px;
                                right: 0;
                                bottom: 20px;
                                border-left: 1px solid #eee;
                                border-bottom: 1px solid #eee;
                            "
                        >
                            <!-- 网格线 -->
                            <div
                                style="
                                    position: absolute;
                                    left: 0;
                                    right: 0;
                                    top: 25%;
                                    height: 1px;
                                    background-color: rgba(0, 0, 0, 0.05);
                                "
                            ></div>
                            <div
                                style="
                                    position: absolute;
                                    left: 0;
                                    right: 0;
                                    top: 50%;
                                    height: 1px;
                                    background-color: rgba(0, 0, 0, 0.05);
                                "
                            ></div>
                            <div
                                style="
                                    position: absolute;
                                    left: 0;
                                    right: 0;
                                    top: 75%;
                                    height: 1px;
                                    background-color: rgba(0, 0, 0, 0.05);
                                "
                            ></div>

                            <!-- 柱状图 -->
                            <div
                                style="
                                    position: absolute;
                                    bottom: 0;
                                    left: 8%;
                                    width: 8%;
                                    height: 30%;
                                    background-color: #ff9fb5;
                                    border-radius: 3px 3px 0 0;
                                "
                            ></div>
                            <div
                                style="
                                    position: absolute;
                                    bottom: 0;
                                    left: 22%;
                                    width: 8%;
                                    height: 45%;
                                    background-color: #ff9fb5;
                                    border-radius: 3px 3px 0 0;
                                "
                            ></div>
                            <div
                                style="
                                    position: absolute;
                                    bottom: 0;
                                    left: 36%;
                                    width: 8%;
                                    height: 60%;
                                    background-color: #ff9fb5;
                                    border-radius: 3px 3px 0 0;
                                "
                            ></div>
                            <div
                                style="
                                    position: absolute;
                                    bottom: 0;
                                    left: 50%;
                                    width: 8%;
                                    height: 70%;
                                    background-color: #ff9fb5;
                                    border-radius: 3px 3px 0 0;
                                "
                            ></div>
                            <div
                                style="
                                    position: absolute;
                                    bottom: 0;
                                    left: 64%;
                                    width: 8%;
                                    height: 50%;
                                    background-color: #ff9fb5;
                                    border-radius: 3px 3px 0 0;
                                "
                            ></div>
                            <div
                                style="
                                    position: absolute;
                                    bottom: 0;
                                    left: 78%;
                                    width: 8%;
                                    height: 40%;
                                    background-color: #ff9fb5;
                                    border-radius: 3px 3px 0 0;
                                "
                            ></div>
                            <div
                                style="
                                    position: absolute;
                                    bottom: 0;
                                    left: 92%;
                                    width: 8%;
                                    height: 55%;
                                    background-color: #ff9fb5;
                                    border-radius: 3px 3px 0 0;
                                "
                            ></div>
                        </div>

                        <!-- X轴 -->
                        <div
                            style="
                                position: absolute;
                                bottom: 0;
                                left: 30px;
                                right: 0;
                                height: 20px;
                                display: flex;
                                justify-content: space-around;
                                align-items: center;
                            "
                        >
                            <div class="text-xs text-gray-500">周一</div>
                            <div class="text-xs text-gray-500">周二</div>
                            <div class="text-xs text-gray-500">周三</div>
                            <div class="text-xs text-gray-500">周四</div>
                            <div class="text-xs text-gray-500">周五</div>
                            <div class="text-xs text-gray-500">周六</div>
                            <div class="text-xs text-gray-500">周日</div>
                        </div>
                    </div>
                    <div class="text-center text-xs text-gray-500 mt-3">
                        近7天平均每小时胎动: <span class="font-medium text-pink-500">12.3</span> 次
                    </div>
                </div>

                <!-- 历史记录 -->
                <div class="card">
                    <div class="card-title">
                        <i class="fas fa-history"></i>
                        <span>历史记录</span>
                    </div>

                    <!-- 记录列表 -->
                    <div class="divide-y divide-gray-100">
                        <div class="py-3 flex justify-between items-center">
                            <div>
                                <div class="text-sm font-medium">今天 14:30-15:30</div>
                                <div class="text-xs text-gray-500">1小时内 12次胎动</div>
                            </div>
                            <div class="text-sm text-green-600 font-medium">正常</div>
                        </div>

                        <div class="py-3 flex justify-between items-center">
                            <div>
                                <div class="text-sm font-medium">昨天 19:00-20:00</div>
                                <div class="text-xs text-gray-500">1小时内 14次胎动</div>
                            </div>
                            <div class="text-sm text-green-600 font-medium">正常</div>
                        </div>

                        <div class="py-3 flex justify-between items-center">
                            <div>
                                <div class="text-sm font-medium">07月18日 10:00-11:00</div>
                                <div class="text-xs text-gray-500">1小时内 9次胎动</div>
                            </div>
                            <div class="text-sm text-green-600 font-medium">正常</div>
                        </div>

                        <div class="py-3 flex justify-between items-center">
                            <div>
                                <div class="text-sm font-medium">07月17日 15:30-16:30</div>
                                <div class="text-xs text-gray-500">1小时内 11次胎动</div>
                            </div>
                            <div class="text-sm text-green-600 font-medium">正常</div>
                        </div>
                    </div>

                    <button
                        class="mt-4 w-full py-2 text-sm text-center text-gray-500 border border-gray-200 rounded-lg"
                    >
                        查看更多记录
                    </button>
                </div>

                <!-- 健康提示 -->
                <div class="card mb-8">
                    <div class="card-title">
                        <i class="fas fa-heartbeat"></i>
                        <span>健康提示</span>
                    </div>
                    <div class="bg-green-50 p-3 rounded-lg">
                        <div class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-0.5 mr-2"></i>
                            <div>
                                <div class="text-sm font-medium text-green-800">胎动情况正常</div>
                                <div class="text-xs text-green-700 mt-1">
                                    您的胎动频率在正常范围内，宝宝发育状况良好。
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="text-xs text-gray-500 mt-3">
                        <p>
                            <i class="fas fa-exclamation-circle mr-1"></i>
                            孕晚期每小时胎动少于3次或24小时内胎动减少超过一半，建议及时就医
                        </p>
                    </div>
                </div>
            </div>

            <!-- 底部导航栏 -->
            <div class="nav-bar">
                <div class="nav-item">
                    <i class="fas fa-home text-xl mb-1"></i>
                    <span>首页</span>
                </div>
                <div class="nav-item active">
                    <i class="fas fa-notes-medical text-xl mb-1"></i>
                    <span>记录</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-book-medical text-xl mb-1"></i>
                    <span>知识库</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-user-friends text-xl mb-1"></i>
                    <span>伴侣空间</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-user text-xl mb-1"></i>
                    <span>我的</span>
                </div>
            </div>
        </div>
    </body>
</html>
